<?php/**Auth: Wolix li*Mail: wenmingpig@gmail.com*MSN: wenbmingpig@msn.com*WebSite: http://www.wolix.com*Date:2011-2-12*/class BizCorpModel extends Model{	protected	$dbName	=	'shininghub_b';	protected	$tablePrefix	=	'v1_';	protected	$tableName	=	'corp';/**给出公司ID查询公司信息*如果给出了语言项目，系统则去查对应语言*/	function getCorpInfoFromId($corpId,$lang="",$map = "",$status = '1'){		if(empty($corpId)) return '';		$corInfo = array();		$corInfo = $this->field($map)->where("corpId='".$corpId."' AND corpStatus='".$status."'")->find();		if(!empty($lang) && $lang !='en-us'){			$BizCorpLangDao = D('BizCorpLang');			$corpInfoLang = $BizCorpLangDao->getCorpInfoFromId($corpId,$lang,$map);			if(!empty($corpInfoLang)){				foreach($corpInfoLang as $k=>$v){					if(!empty($v) && isset($corInfo[$k])){						$corInfo[$k] = $v;					}				}			}			unset($BizCorpLangDao,$corpInfoLang);		}		return $corInfo;	}}?>